package com.assignwork.mapper;

import com.assignwork.dto.CorpTeamSearchDTO;
import com.assignwork.entity.CorpTeam;
import com.assignwork.vo.CorpTeamListVO;
import com.assignwork.vo.CorpTeamMachineStatusVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName CorpTeamMapper
 * @Description 作业队Mapper
 * @Author dujianyu
 * @Date 2023/12/12 13:50
 */
public interface CorpTeamMapper extends BaseMapper<CorpTeam> {
    /**
     * 列表
     * @param dto 搜索条件
     * @param page 分页
     * @return List<CorpTeamListVO>
     * @author dujianyu
     * @since 2023/12/12 14:04
     */
    List<CorpTeamListVO> selectCorpTeamList(@Param("dto") CorpTeamSearchDTO dto, IPage<CorpTeamListVO> page);

    /**
     * 机械情况
     * @param dto 搜索条件
     * @return List<CorpTeamMachineStatusVO>
     * @author dujianyu
     * @since 2023/12/15 11:01
     */
    List<CorpTeamMachineStatusVO> selectMachineStatusList(@Param("dto") CorpTeamSearchDTO dto);
}
